<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../../layui/css/layui.css">
    <!--   引入核心js-->
    <script src="../../layui/layui.js"></script>
</head>
<body>
<a class="layui-btn" lay-event="detail" href="question.html">返回</a>
<table id="dg"></table>
<script>
    layui.use(['table'],function () {
        let table = layui.table;//定义表格组件
        table.render({
            elem: '#dg',
            url: '../../correct/allquestion/student',
            //page: true,//开启分页
            parseData:function (res){
                console.log(res)
                return{
                    "code":0
                    ,"msg":""
                    ,"count":10
                    ,"data":res
                }
            },
            cols: [[ //表头
                {type: 'checkbox'}
                ,{field: 'stuid', title: '学生编号'}
                ,{field: 'stuname', title: '学生姓名'}
                ,{field: 'tel', title: '电话'}
                ,{field: 'right', title: '操作', toolbar: "#barDemo"}
            ]]

        })
    })
</script>
<script type="text/html" id="barDemo">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail" href="autcor.html">手动阅卷</a>
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail" href="cor.html">自动阅卷</a>
</script>
</body>
</html>